package com.prs.crm.dao.oa.impl;

import java.util.List;

import org.hibernate.Criteria;

import com.prs.crm.dao.impl.BaseDaoImpl;
import com.prs.crm.dao.oa.VehicleDao;
import com.prs.crm.domain.oa.Vehicle;
import com.prs.crm.domain.oa.VehicleInsuranceType;

public class VehicleDaoImpl extends BaseDaoImpl<Vehicle> implements VehicleDao{

	@Override
	public List<Vehicle> getAllVehicle() {
		Criteria criteria = this.getSession().createCriteria(Vehicle.class);
		List<Vehicle> list = criteria.list();
		if(list.size()!=0){
			return list;
		}else{
			return null;
		}
	}

}
